<ion-view>
  <ion-header-bar class="bar bar-header header">
    <button on-touch="goback()" class="button  return-btn">返回</button>
    <h1 class="title" on-touch="backToTop()">酒款评论</h1>
  </ion-header-bar>
  <ion-content class="gray-bg" has-bouncing="true">
    <ion-refresher
      pulling-text="下拉刷新..."
      on-refresh="doRefresh()"></ion-refresher>
    <div class="list">
        <ul>
            <li ng-repeat="item in commentList">
                <a class="item item-avatar comment-item">
                    <img ng-src="{{picPath}}{{item.member_img_url}}" alt=""/>
                    <h2><em class="comment-item-date">{{item.wine_comment_time}}</em>{{item.member_name}}</h2>
                  <button ng-if="item.myselfComment" on-touch="deleteComment(item.wine_comment_id,$index)" class="my-dimple-del-btn fr" style="margin:3px 7px 0 0" type="button"></button>
                    <p>{{item.wine_comment_content}}</p>
                </a>
            </li>
        </ul>
     </div>
    <ion-infinite-scroll
      on-infinite="loadMore()" ng-if="hasNextPage()"
      distance="1%"></ion-infinite-scroll>
  </ion-content>
  <ion-footer-bar keyboard-attach class="bar bar-footer footer-white">
    <div class="comment-fix-pic"><img ng-src="{{picPath}}{{memberInfo.member_img_url}}" alt=""/></div>
    <div class="comment-fix-main">
      <label>
        <i class="comment-fix-icon"></i>
        <input class="comment-fix-text" type="text" ng-model="comment.newComment" placeholder="说点什么吧..."/>
      </label>
    </div>
    <button class="button pull-right comment-fix-btn" on-touch="publishComment()" type="button">发表</button>
  </ion-footer-bar>
</ion-view>

